<?php
//导航
class cache_nav_list_auto_cache extends auto_cache{
	public function load($param)
	{
		$key = $this->build_key(__CLASS__,$param);
		$nav_list = S($key);
		if($nav_list === false)
		{
			$nav_list = M('nav')->where(array('is_effect'=>'1'))->order('sort asc')->select();
			$nav_list = format_nav_list($nav_list);
			S($key,$nav_list);
		}
		return $nav_list;
	}
	public function rm($param)
	{
		$key = $this->build_key(__CLASS__,$param);
		S($key,null);
	}
	public function clear_all()
	{
		return true;
	}
}
?>